package com.itheima.autoconfig;

import com.itheima.autoconfig.properties.OssProperties;
import com.itheima.autoconfig.template.OssTemplate;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
 * @author 芝士雪豹
 * @create 2022/10/11/15:09
 */
//自动装配
@EnableConfigurationProperties({
        OssProperties.class
})
public class MarketAutoConfiguration {
    @Bean
    public OssTemplate ossTemplate(OssProperties ossProperties) {
        return new OssTemplate(ossProperties);
    }

}
